#define _CRT_SECURE_NO_WARNINGS
#include"stack_sim.h"

void test1()
{
	ST s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPush(&s, 6);

	printf("%d\n", StackTop(&s));
	StackPop(&s);

	if (StackEmpty(&s))
	{
		printf("%d\n", 1);
	}
	else
	{
		printf("%d\n", StackSize(&s));
		printf("%d", 0);
	}


}

int main()
{
	test1();
	return 0;
}
